package com.threefivework.mymall.dao.mapper;

import com.threefivework.mymall.model.domain.Buyer;

import java.util.List;
import java.util.Optional;

/**
 * descripiton:
 *
 * @author: kinson(2219945910@qq.com)
 * @date: 2018/6/29
 * @time: 21:21
 * @modifier:
 * @since:
 */
public interface BuyerMapper {

    List<Buyer> list();

    Integer insert(final Buyer buyer);

    Buyer getByPK(final Integer id);

    Optional<Buyer> getByOpenId(final String openId);

    void delete(final Integer id);

    void update(final Buyer buyer);
}
